package at.fhooe.mc.master.clc.server.domain.jpa;

import javax.persistence.Embeddable;
import javax.persistence.Entity;

import org.datanucleus.api.jpa.annotations.Extension;

import at.fhooe.mc.master.clc.server.domain.IEmbeddedEntity;

@Embeddable
public class EmbeddedJPAEntity implements IEmbeddedEntity
{
	private String stringField;
	@Extension(vendorName = "datanucleus", key = "gae.unindexed", value = "true")
	private double doubleField;

	public EmbeddedJPAEntity()
	{
	}

	public EmbeddedJPAEntity(boolean generate)
	{
		if (generate)
		{
			this.stringField = "embedded_string_field";
			this.doubleField = 42.42;
		}
	}
	
	
	@Override
	public String getStringField()
	{
		return this.stringField;
	}

	@Override
	public double getDoubleField()
	{
		return this.doubleField;
	}

}
